package com.lgx.mall.basic.service;

import java.util.List;

import com.lgx.common.web.Pagination;
import com.lgx.mall.basic.entity.Fare;

public interface IFareService {

	public Fare createFare(Fare fare);      		//创建Fare
	public Fare updateFare(Fare fare);			    //修改Fare
	public void deleteFare(Fare fare);				//根据对象删除Fare
	public void deleteFareById(long id);		    		//根据id删除Fare
	public void deleteFare(String[] ids);          		    //多项删除
	public Fare findFareById(long id);							        	//根据id查找Fare
	public List<Fare> findFareList();
	public Pagination findFarePagination(String fromCity,String toCity,int pageSize,int pageNum);
	
	/**
	 * 
	 * @param fromCity 发货市
	 * @param toProvince 收货省
	 * @param toCity 收货市
	 * @param toRegion 收货县区
	 * @param weight 货物重量
	 * @param amount 货物数量
	 * @return
	 */
	public double calculationOfShippingCosts(String fromCity,String toProvince,String toCity,String toRegion,double weight,int amount);
}
